<?php
/**
 * ------------------------------------------------------------------------
 * JA Toppanel Module for Joomla 2.5
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites: http://www.joomlart.com - http://www.joomlancers.com
 * ------------------------------------------------------------------------
 */
// no direct access
defined('_JEXEC') or die('Restricted access');

$modulename = 'ja-toppanel-mainwrap'.rand();
?>
<script type="text/javascript">
	window.addEvent('load', function(){
		new JAToppanel('<?php echo $modulename?>', {modulenid:'<?php echo $module->id?>', duration: <?php echo $duration?>, auto: <?php echo $auto_open?>, delay: <?php echo (int)$delay?>, dontshowagain: <?php echo (int)$show_dontshowagain?>, overlay: <?php echo $overlay?>, $cookie_suffix:'<?php echo $cookie_suffix?>'});
	})
</script>
<div class="ja-toppanel-mainwrap<?php echo htmlspecialchars($params->get('moduleclass_sfx')) ?> <?php if($transparent) echo 'bg-transparent'?>">
	<div class="ja-toppanel-container" id="<?php echo $modulename?>">
		<div class="ja-toppanel-panels">
			<div class="ja-toppanel-wraper <?php if($transparent) echo 'bg-transparent'?>">
				<div class="ja-toppanel-content">
					<?php echo $module_content?>

				</div>
			</div>
			<div class="ja-toppanel-button-wraper <?php if($overlay) echo 'button-transparent';?>" id="ja-toppanel-button-wraper-<?php echo $module->id?>">
				<div class="ja-toppanel-button-subwap left">
					<div class="ja-toppanel-button-l"></div>
					<div class="ja-toppanel-button"><?php echo JText::_('Top_Panel')?></div>
					<div class="ja-toppanel-button-r"></div>
				</div>
				<?php if($show_dontshowagain){?>
				<div class="ja-toppanel-button-subwap right" id="ja-toppanel-button-subwap-<?php echo $module->id?>">
					<div class="ja-toppanel-button-l"></div>
					<div class="ja-toppanel-button">
						<input type="checkbox" value="<?php echo $module->id; ?>" name="dontshowagain" id="dontshowagain<?php echo $module->id; ?>"/>
						<label for="dontshowagain<?php echo $module->id; ?>"><?php echo JText::_("DONT_SHOW_AGAIN")?></label>
					</div>
					<div class="ja-toppanel-button-r"></div>
				</div>
				<?php }?>
			</div>


		</div>
	</div>
</div>